home *** CD-ROM | disk | FTP | other *** search
/ Enter 2004 January / EnterCD 01_2004.iso / Multimedia / Advanced Effect Maker Freeware Edition 1.0 / aemf10.exe / {app} / templates / edwardmessage.swf / scripts / frame_4 / DoAction.as
Encoding:
Text File  |  2002-10-12  |  1.5 KB  |  52 lines

  1. debug = 0;
  2. if(0 < debug)
  3. {
  4.    movx = 550;
  5.    movy = 100;
  6.    var texts = new String("This is|EDWARD|text effect|");
  7.    var urls = new String("http://www.effectmaker.com|http://www.effectmaker.com|http://www.effectmaker.com|");
  8.    tcol = 16711935;
  9.    bcol = 16711680;
  10.    lcol = 0;
  11.    bspeed = 7;
  12.    bp = 20;
  13.    ang = 20;
  14.    backgroundcolor = 16777215;
  15. }
  16. else
  17. {
  18.    var movx = parseInt("400",10);
  19.    var movy = parseInt("200",10);
  20.    var texts = "What is this weird applet?|EdwardMesssage|Another strange applet from Effect Maker|";
  21.    var urls = "http://www.effectmaker.com/clickpage.html|http://www.effectmaker.com/clickpage.html|http://www.effectmaker.com/clickpage.html|";
  22.    var tcol = parseInt("255",10);
  23.    var bcol = parseInt("0",10);
  24.    var lcol = parseInt("16762880",10);
  25.    var bspeed = parseInt("3",10);
  26.    var bspeed = parseInt("3",10);
  27.    var bp = parseInt("20",10);
  28.    var ang = parseInt("20",10);
  29.    var backgroundcolor = parseInt("0",10);
  30.    var target = "links";
  31. }
  32. var texts = texts.split("|");
  33. var urls = urls.split("|");
  34. moviearea._x = 0;
  35. moviearea._y = 0;
  36. moviearea._width = movx;
  37. moviearea._height = movy;
  38. tcn = 0;
  39. mc = new Color(s1);
  40. mc.setRGB(tcol);
  41. mc = new Color(s2);
  42. mc.setRGB(bcol);
  43. mc = new Color(line);
  44. mc.setRGB(lcol);
  45. tor = (movy - s1._height) / 2;
  46. lor = (movy - s1._height) / 2 + s1._height / 2;
  47. var today = new Date();
  48. if(!(today.getTime() < _root.ts && _root.ts < today.getTime() + 172800000 || _root.ts == -1))
  49. {
  50.    gotoAndStop("ea");
  51. }
  52.